package com.liurz.controller;

import com.liurz.util.ResponseResult;
import com.liurz.util.WriteDataBySqlFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.xml.ws.soap.Addressing;

@RestController
@RequestMapping("/testSql")
public class WriteDataBySqlFileController {
    @Autowired
    private com.liurz.util.WriteDataBySqlFile WriteDataBySqlFile;

    @PostMapping("/exc")
    public ResponseResult getOne(){
        WriteDataBySqlFile.exc("D:\\test_data.sql");
        return ResponseResult.success(true);
    }
}
